package com.fx.zmlzml;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 应用程序启动类
 */
@MapperScan("com.fx.zmlzml.mapper")
@SpringBootApplication
@ConfigurationPropertiesScan
@EnableAsync  // 启用异步处理
@EnableScheduling  // 启用定时任务
public class ZmlzmlApplication {

    public static void main(String[] args) {
        // 移除延迟初始化，确保ApplicationContextHolder和MessageUtils能及时初始化
        SpringApplication.run(ZmlzmlApplication.class, args);
    }

}